import request from '@/utils/request'

export default {
	// 农地管理列表
	landListData(query) {
		return request({
			url: '/agriculture/land/list',
			method: 'get',
			params: query,
		})
	},
	// 农地管理新增
	addLandData(data) {
		return request({
			url: '/agriculture/land/add',
			method: 'post',
			data: data,
		})
	},
	// 农地管理删除
	deleteLandData(data) {
		return request({
			url: '/agriculture/land/delete',
			method: 'post',
			data: data,
		})
	},

	// 农地管理导入
	importLandData(data) {
		return request({
			url: '/agriculture/land/import',
			method: 'post',
			headers: {
				'Content-Type': 'multipart/form-data',
			},
			data: data,
		})
	},
	// 修改
	updateLand(data) {
		return request({
			url: '/agriculture/land/update',
			method: 'post',
			data: data,
		})
	},

	// 详情
	detailLand(data) {
		return request({
			url: '/agriculture/land/detail',
			method: 'post',
			data: data,
		})
	},

	// landCode查询回显土地信息
	landInfo(data) {
		return request({
			url: '/agriculture/land/landdetail',
			method: 'post',
			data: data,
		})
	},

	// 地区
	getArea(query) {
		return request({
			url: '/system/dept/getArea',
			method: 'get',
			params: query,
		})
	},
}
